<template>
  <div class="node-head">
    <div class="node-icon"></div>
    <div class="node-title">{{ nodeName }}</div>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
  defineProps(['nodeName']);
</script>

<style scoped>
  .node-head {
    display: flex;
    align-items: center;
  }

  .node-icon {
    width: 6px;
    height: 18px;
    background-color: #5e95ff;
    margin-right: 8px;
  }

  .node-title {
    font-size: 16px;
  }
</style>
